<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core">
	<head>
		<meta http-equiv="Expires" content="0" />
		<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache" />
		<META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge, chrome=1" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<base href="#{_skyveSVG.baseHref}svgedit/" />
		<link rel="icon" type="image/png" href="images/logo.png" />
		<link rel="stylesheet" href="jgraduate/css/jPicker.css?v=2.8.1" type="text/css" />
		<link rel="stylesheet" href="jgraduate/css/jgraduate.css?v=2.8.1" type="text/css" />
		<link rel="stylesheet" href="svg-editor.css?v=2.8.1" type="text/css" />
		<link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css?v=2.8.1" type="text/css" />
		<style>
			#svg_editor #tools_top {
				height: 40px;
			}
			#svg_editor div#workarea {
				top: 45px;
			}
		</style>

		<script src="jquery.js?v=2.8.1"></script>
		<script src="js-hotkeys/jquery.hotkeys.min.js?v=2.8.1"></script>
		<script src="jquerybbq/jquery.bbq.min.js?v=2.8.1"></script>
		<script src="svgicons/jquery.svgicons.js?v=2.8.1"></script>
		<script src="jgraduate/jquery.jgraduate.min.js?v=2.8.1"></script>
		<script src="spinbtn/JQuerySpinBtn.min.js?v=2.8.1"></script>
		<script src="touch.js?v=2.8.1"></script>
		
		<script src="svgedit.compiled.js?v=2.8.1"></script>
		
		<!-- always minified scripts -->
		<script src="jquery-ui/jquery-ui-1.8.17.custom.min.js"></script>
		<script src="jgraduate/jpicker.js?v=2.8.1"></script>
		
		<!-- feeds -->
		<link rel="alternate" type="application/atom+xml"
				title="SVG-edit General Discussion"
				href="http://groups.google.com/group/svg-edit/feed/atom_v1_0_msgs.xml" />
		<link rel="alternate" type="application/atom+xml"
				title="SVG-edit Updates (Issues/Fixes/Commits)"
				href="http://code.google.com/feeds/p/svg-edit/updates/basic" />
		
		<!-- Add script with custom handlers here -->
		<script type="text/javascript">
			svgEditor.setConfig({
				dimensions : [#{_skyveSVG.widthParameter}, #{_skyveSVG.heightParameter}],
				no_save_warning : true,
				show_outside_canvas : false,
				noDefaultExtensions : true,
				initFill : {
					opacity : 0.5
				},
				initStroke : {
					opacity : 0.5
				},
				extensions : [ 'ext-grid.js', 'ext-panning.js' ],
				showRulers : false,
				bkgd_url : '#{_skyveSVG.backgroundUrl}'
			});
		
			function showSvg() {
				var svg = parent.document.forms[0].svg.value;
				if (svg != '') {
					svgEditor.loadFromString(svg);
				}
			}
		</script>
		
		<title>Image Markup</title>
	</head>
	<body onload="showSvg()">
		<f:metadata>
			<f:viewParam name="_n" value="#{_skyveSVG.contentIdParameter}" />
			<f:viewParam name="_doc" value="#{_skyveSVG.bizDocumentParameter}" />
			<f:viewParam name="_b" value="#{_skyveSVG.contentBindingParameter}" />
			<f:viewParam name="_w" value="#{_skyveSVG.widthParameter}" />
			<f:viewParam name="_h" value="#{_skyveSVG.heightParameter}" />
		</f:metadata>
		<div id="svg_editor">
			<div id="workarea">
				<style id="styleoverrides" type="text/css" media="screen" scoped="scoped"></style>
				<div id="svgcanvas" style="position: relative"></div>
			</div>
	
			<div id="tools_top" class="tools_panel">
				<div id="editor_panel"></div>
	
				<!-- History buttons -->
				<div id="history_panel">
					<div class="tool_sep"></div>
					<div class="push_button tool_button_disabled" id="tool_undo" title="Undo [Z]"></div>
					<div class="push_button tool_button_disabled" id="tool_redo" title="Redo [Y]"></div>
				</div>
	
				<!-- Buttons when a single element is selected -->
				<div id="selected_panel">
					<div class="toolset">
						<div class="push_button" id="tool_delete" title="Delete Element [Delete/Backspace]"></div>
						<div class="tool_sep"></div>
						<div class="push_button" id="tool_move_top" title="Bring to Front [ Ctrl+Shift+] ]"></div>
						<div class="push_button" id="tool_move_bottom" title="Send to Back [ Ctrl+Shift+[ ]"></div>
					</div>
				</div>
	
				<!-- Buttons when multiple elements are selected -->
				<div id="multiselected_panel"></div>
	
				<div id="rect_panel"></div>
	
				<div id="image_panel"></div>
	
				<div id="circle_panel"></div>
	
				<div id="ellipse_panel"></div>
	
				<div id="line_panel"></div>
	
				<div id="text_panel">
					<div class="toolset">
						<div class="tool_button" id="tool_bold" title="Bold Text [B]">
							<span></span>B
						</div>
						<div class="tool_button" id="tool_italic" title="Italic Text [I]">
							<span></span>i
						</div>
					</div>
	
					<div class="toolset" id="tool_font_family">
						<label>
							<!-- Font family --> 
							<input id="font_family" type="text" title="Change Font Family" size="12" />
						</label>
						<div id="font_family_dropdown" class="dropdown">
							<button></button>
							<ul>
								<li style="font-family: serif">Serif</li>
								<li style="font-family: sans-serif">Sans-serif</li>
								<li style="font-family: cursive">Cursive</li>
								<li style="font-family: fantasy">Fantasy</li>
								<li style="font-family: monospace">Monospace</li>
							</ul>
						</div>
					</div>
	
					<label id="tool_font_size" title="Change Font Size">
						<span id="font_sizeLabel" class="icon_label"></span>
						<input id="font_size" size="3" value="0" type="text" />
					</label>
	
					<!-- Not visible, but still used -->
					<input id="text" type="text" size="35" />
				</div>
	
				<!-- formerly gsvg_panel -->
				<div id="container_panel">
					<div class="tool_sep"></div>
	
					<!-- Add viewBox field here? -->
	
					<label id="group_title" title="Group identification label">
						<span>label:</span>
						<input id="g_title" data-attr="title" size="10" type="text" />
					</label>
				</div>
	
				<div id="use_panel"></div>
	
				<div id="g_panel"></div>
	
				<!-- For anchor elements -->
				<div id="a_panel"></div>
	
				<div id="path_node_panel"></div>
			</div>
			<!-- tools_top -->
	
			<div id="tools_left" class="tools_panel">
				<div class="tool_button" id="tool_select" title="Select Tool"></div>
				<div class="tool_button" id="tool_fhpath" title="Pencil Tool"></div>
				<div class="tool_button" id="tool_line" title="Line Tool"></div>
				<div class="tool_button flyout_current" id="tools_rect_show" title="Square/Rect Tool">
					<div class="flyout_arrow_horiz"></div>
				</div>
				<div class="tool_button flyout_current" id="tools_ellipse_show" title="Ellipse/Circle Tool">
					<div class="flyout_arrow_horiz"></div>
				</div>
				<div class="tool_button" id="tool_path" title="Path Tool"></div>
				<div class="tool_button" id="tool_text" title="Text Tool"></div>
				<div class="tool_button" id="tool_zoom" title="Zoom Tool [Ctrl+Up/Down]"></div>
	
				<div style="display: none">
					<div id="tool_rect" title="Rectangle"></div>
					<div id="tool_square" title="Square"></div>
					<div id="tool_fhrect" title="Free-Hand Rectangle"></div>
					<div id="tool_ellipse" title="Ellipse"></div>
					<div id="tool_circle" title="Circle"></div>
					<div id="tool_fhellipse" title="Free-Hand Ellipse"></div>
				</div>
			</div>
			<!-- tools_left -->
	
			<div id="tools_bottom" class="tools_panel">
	
				<!-- Zoom buttons -->
				<div id="zoom_panel" class="toolset" title="Change zoom level">
					<label>
						<span id="zoomLabel" class="zoom_tool icon_label"></span>
						<input id="zoom" size="3" value="100" type="text" />
					</label>
					<div id="zoom_dropdown" class="dropdown">
						<button></button>
						<ul>
							<li>1000%</li>
							<li>400%</li>
							<li>200%</li>
							<li>100%</li>
							<li>50%</li>
							<li>25%</li>
							<li id="fit_to_canvas" data-val="canvas">Fit to canvas</li>
							<li id="fit_to_sel" data-val="selection">Fit to selection</li>
							<li id="fit_to_layer_content" data-val="layer">Fit to layer content</li>
							<li id="fit_to_all" data-val="content">Fit to all content</li>
							<li>100%</li>
						</ul>
					</div>
					<div class="tool_sep"></div>
				</div>
	
				<div id="tools_bottom_2">
					<div id="color_tools">
						<div class="color_tool" id="tool_fill">
							<label class="icon_label" for="fill_color" title="Change fill color"></label>
							<div class="color_block">
								<div id="fill_bg"></div>
								<div id="fill_color" class="color_block"></div>
							</div>
						</div>
	
						<div class="color_tool" id="tool_stroke">
							<label class="icon_label" title="Change stroke color"></label>
							<div class="color_block">
								<div id="stroke_bg"></div>
								<div id="stroke_color" class="color_block" title="Change stroke color"></div>
							</div>
	
							<label class="stroke_label">
								<input id="stroke_width" title="Change stroke width by 1, shift-click to change by 0.1" size="2" value="5" type="text" data-attr="Stroke Width" />
							</label>
	
							<div id="toggle_stroke_tools" title="Show/hide more stroke tools"></div>
	
							<label class="stroke_tool">
								<select id="stroke_style" title="Change stroke dash style">
									<option selected="selected" value="none">&#8212;</option>
									<option value="2,2">...</option>
									<option value="5,5">- -</option>
									<option value="5,2,2,2">- .</option>
									<option value="5,2,2,2,2,2">- ..</option>
								</select>
							</label>
	
							<div class="stroke_tool dropdown" id="stroke_linejoin">
								<div id="cur_linejoin" title="Linejoin: Miter"></div>
								<button></button>
							</div>
	
							<div class="stroke_tool dropdown" id="stroke_linecap">
								<div id="cur_linecap" title="Linecap: Butt"></div>
								<button></button>
							</div>
						</div>
	
						<div class="color_tool" id="tool_opacity" title="Change selected item opacity">
							<label>
								<span id="group_opacityLabel" class="icon_label"></span>
								<input id="group_opacity" size="3" value="100" type="text" />
							</label>
							<div id="opacity_dropdown" class="dropdown">
								<button></button>
								<ul>
									<li>0%</li>
									<li>25%</li>
									<li>50%</li>
									<li>75%</li>
									<li>100%</li>
									<li class="special"><div id="opac_slider"></div></li>
								</ul>
							</div>
						</div>
					</div>
				</div>
	
				<div id="tools_bottom_3">
					<div id="palette_holder">
						<div id="palette" title="Click to change fill color, shift-click to change stroke color"></div>
					</div>
				</div>
			</div>
	
			<div id="option_lists" class="dropdown">
				<ul id="linejoin_opts">
					<li class="tool_button current" id="linejoin_miter" title="Linejoin: Miter"></li>
					<li class="tool_button" id="linejoin_round" title="Linejoin: Round"></li>
					<li class="tool_button" id="linejoin_bevel" title="Linejoin: Bevel"></li>
				</ul>
	
				<ul id="linecap_opts">
					<li class="tool_button current" id="linecap_butt" title="Linecap: Butt"></li>
					<li class="tool_button" id="linecap_square" title="Linecap: Square"></li>
					<li class="tool_button" id="linecap_round" title="Linecap: Round"></li>
				</ul>
	
				<ul id="position_opts" class="optcols3">
					<li class="push_button" id="tool_posleft" title="Align Left"></li>
					<li class="push_button" id="tool_poscenter" title="Align Center"></li>
					<li class="push_button" id="tool_posright" title="Align Right"></li>
					<li class="push_button" id="tool_postop" title="Align Top"></li>
					<li class="push_button" id="tool_posmiddle" title="Align Middle"></li>
					<li class="push_button" id="tool_posbottom" title="Align Bottom"></li>
				</ul>
			</div>

			<!-- hidden divs -->
			<div id="color_picker"></div>
		</div>

		<!-- svg_editor -->
		<div id="svg_source_editor">
			<div class="overlay"></div>
			<div id="svg_source_container">
				<div id="tool_source_back" class="toolbar_button">
					<button id="tool_source_save">Apply Changes</button>
					<button id="tool_source_cancel">Cancel</button>
				</div>
				<div id="save_output_btns">
					<p id="copy_save_note">
						Copy the contents of this box into a text
						editor, then save the file with a .svg extension.
					</p>
					<button id="copy_save_done">Done</button>
				</div>
				<form>
					<textarea id="svg_source_textarea" spellcheck="false"></textarea>
				</form>
			</div>
		</div>

		<div id="svg_docprops">
			<div class="overlay"></div>
			<div id="svg_docprops_container">
				<div id="tool_docprops_back" class="toolbar_button">
					<button id="tool_docprops_save">OK</button>
					<button id="tool_docprops_cancel">Cancel</button>
				</div>
	
				<fieldset id="svg_docprops_docprops">
					<legend id="svginfo_image_props">Image Properties</legend>
					<label>
						<span id="svginfo_title">Title:</span>
						<input type="text" id="canvas_title" />
					</label>
	
					<fieldset id="change_resolution">
						<legend id="svginfo_dim">Canvas Dimensions</legend>
	
						<label>
							<span id="svginfo_width">width:</span>
							<input type="text" id="canvas_width" size="6" />
						</label>
						<label>
							<span id="svginfo_height">height:</span>
							<input type="text" id="canvas_height" size="6" />
						</label>
						<label>
							<select id="resolution">
								<option id="selectedPredefined" selected="selected">Select predefined:</option>
								<option>640x480</option>
								<option>800x600</option>
								<option>1024x768</option>
								<option>1280x960</option>
								<option>1600x1200</option>
								<option id="fitToContent" value="content">Fit to Content</option>
							</select>
						</label>
					</fieldset>
	
					<fieldset id="image_save_opts">
						<legend id="includedImages">Included Images</legend>
						<label>
							<input type="radio" name="image_opt" value="embed" checked="checked" />
							<span id="image_opt_embed">Embed data (local files)</span>
						</label>
						<label>
							<input type="radio" name="image_opt" value="ref" />
							<span id="image_opt_ref">Use file reference</span>
						</label>
					</fieldset>
				</fieldset>
			</div>
		</div>
	
		<div id="svg_prefs">
			<div class="overlay"></div>
			<div id="svg_prefs_container">
				<div id="tool_prefs_back" class="toolbar_button">
					<button id="tool_prefs_save">OK</button>
					<button id="tool_prefs_cancel">Cancel</button>
				</div>
	
				<fieldset>
					<legend id="svginfo_editor_prefs">Editor Preferences</legend>
					<label>
						<span id="svginfo_lang">Language:</span>
						<select id="lang_select">
							<option id="lang_ar" value="ar">العربية</option>
							<option id="lang_cs" value="cs">Čeština</option>
							<option id="lang_de" value="de">Deutsch</option>
							<option id="lang_en" value="en" selected="selected">English</option>
							<option id="lang_es" value="es">Español</option>
							<option id="lang_fa" value="fa">فارسی</option>
							<option id="lang_fr" value="fr">Français</option>
							<option id="lang_fy" value="fy">Frysk</option>
							<option id="lang_hi" value="hi">&#2361;&#2367;&#2344;&#2381;&#2342;&#2368;,&#2361;&#2367;&#2306;&#2342;&#2368;</option>
							<option id="lang_it" value="it">Italiano</option>
							<option id="lang_ja" value="ja">日本語</option>
							<option id="lang_nl" value="nl">Nederlands</option>
							<option id="lang_pl" value="pl">Polski</option>
							<option id="lang_pt-BR" value="pt-BR">Português (BR)</option>
							<option id="lang_ro" value="ro">Română</option>
							<option id="lang_ru" value="ru">Русский</option>
							<option id="lang_sk" value="sk">Slovenčina</option>
							<option id="lang_sl" value="sl">Slovenščina</option>
							<option id="lang_zh-TW" value="zh-TW">繁體中文</option>
						</select>
					</label>
					<label>
						<span id="svginfo_icons">Icon size:</span>
						<select id="iconsize">
							<option id="icon_small" value="s">Small</option>
							<option id="icon_medium" value="m" selected="selected">Medium</option>
							<option id="icon_large" value="l">Large</option>
							<option id="icon_xlarge" value="xl">Extra Large</option>
						</select>
					</label>

					<fieldset id="change_background">
						<legend id="svginfo_change_background">Editor Background</legend>
						<div id="bg_blocks"></div>
						<label><span id="svginfo_bg_url">URL:</span> <input
							type="text" id="canvas_bg_url" /></label>
						<p id="svginfo_bg_note">Note: Background will not be saved with
							image.</p>
					</fieldset>
	
					<fieldset id="change_grid">
						<legend id="svginfo_grid_settings">Grid</legend>
						<label>
							<span id="svginfo_snap_onoff">Snapping on/off</span>
							<input type="checkbox" value="snapping_on" id="grid_snapping_on" />
						</label>
						<label>
							<span id="svginfo_snap_step">Snapping Step-Size:</span>
							<input type="text" id="grid_snapping_step" size="3" value="10" />
						</label>
						<label>
							<span id="svginfo_grid_color">Grid color:</span>
							<input type="text" id="grid_color" size="3" value="#000" />
						</label>
					</fieldset>
	
					<fieldset id="units_rulers">
						<legend id="svginfo_units_rulers">Units &amp; Rulers</legend>
						<label>
							<span id="svginfo_rulers_onoff">Show rulers</span>
							<input type="checkbox" value="show_rulers" id="show_rulers" checked="checked" />
						</label>
						<label>
							<span id="svginfo_unit">Base Unit:</span>
							<select id="base_unit">
								<option value="px">Pixels</option>
								<option value="cm">Centimeters</option>
								<option value="mm">Millimeters</option>
								<option value="in">Inches</option>
								<option value="pt">Points</option>
								<option value="pc">Picas</option>
								<option value="em">Ems</option>
								<option value="ex">Exs</option>
							</select>
						</label>
					</fieldset>
				</fieldset>
			</div>
		</div>
	
		<div id="dialog_box">
			<div class="overlay"></div>
			<div id="dialog_container">
				<div id="dialog_content"></div>
				<div id="dialog_buttons"></div>
			</div>
		</div>
	
		<ul id="cmenu_canvas" class="contextMenu">
			<li><a href="#cut">Cut</a></li>
			<li><a href="#copy">Copy</a></li>
			<li><a href="#paste">Paste</a></li>
			<li><a href="#paste_in_place">Paste in Place</a></li>
			<li class="separator"><a href="#delete">Delete</a></li>
			<li class="separator"><a href="#group">Group<span class="shortcut">G</span></a></li>
			<li><a href="#ungroup">Ungroup<span class="shortcut">G</span></a></li>
			<li class="separator"><a href="#move_front">Bring to Front<span class="shortcut">SHFT+CTRL+]</span></a></li>
			<li><a href="#move_up">Bring Forward<span class="shortcut">CTRL+]</span></a></li>
			<li><a href="#move_down">Send Backward<span class="shortcut">CTRL+[</span></a></li>
			<li><a href="#move_back">Send to Back<span class="shortcut">SHFT+CTRL+[</span></a></li>
		</ul>

		<ul id="cmenu_layers" class="contextMenu">
			<li><a href="#dupe">Duplicate Layer...</a></li>
			<li><a href="#delete">Delete Layer</a></li>
			<li><a href="#merge_down">Merge Down</a></li>
			<li><a href="#merge_all">Merge All</a></li>
		</ul>
	</body>
</html>
